package com.patterns.bridge.demo;

public class Test {
	public static void main(String[] args) {
		// >> 销售联想笔记本电脑
		Brand brand = new LenovoBrand();//联想品牌
		Computer computer = new NotebookComputer(brand); //笔记本机型
		computer.sale();//销售联想电脑 销售笔记本电脑
		
		// >> 销售苹果pad
		Computer pad = new PadComputer(new AppleBrand());
		pad.sale();//销售苹果电脑 销售平板电脑
		
	}
}
